package com.red.star.wechat.data.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @author Xucan
 * @Description:导购员身份变更
 * @create 2018-03-27 12:20
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_employee_identity")
public class EmployeeIdentity extends BaseEntity {

	/**
	 * 变更时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date startChangeTime;

	/**
	 *
	 * */
	@Transient
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endChangeTime;

	/**
	 * 导购名称
	 */
	private String employeeName;

	/**
	 * 导购电话
	 **/
	private String employeeMobile;

	/**
	 * 商户
	 */
	private Integer merchantId;

	/**
	 * 所属商户
	 */
	private String shopName;

	/**
	 * openid
	 */
	private String openId;

	/**
	 * 是否为店长
	 */
	private Boolean isShopOwner;

	private String mallCode;

	public EmployeeIdentity(Date startChangeTime, String employeeName, String employeeMobile, Integer merchantId,
	                        String shopName, String openId, Boolean isShopOwner, String mallCode) {
		this.startChangeTime = startChangeTime;
		this.employeeName = employeeName;
		this.employeeMobile = employeeMobile;
		this.merchantId = merchantId;
		this.shopName = shopName;
		this.openId = openId;
		this.isShopOwner = isShopOwner;
		this.mallCode = mallCode;
	}
}
